package com.andon.springboot.seed.service;

import com.andon.springboot.seed.api.ApiResponseUtil;
import com.andon.springboot.seed.entity.DeptEntity;
import com.andon.springboot.seed.param.DeptParam;

import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

/**
 * <p>
 * 部门服务类
 * </p>
 *
 * @author BWL
 * @since 2018-11-11
 */
public interface IDeptService {

    /**
     * 根据id查询部门名称
     *
     * @param deptId
     * @return ApiResult
     */
    @Cacheable()
    ApiResponseUtil<DeptEntity> selectDeptById(Integer deptId);

    /**
     * 保存部门信息
     *
     * @param deptParam
     * @return String
     */
    @CachePut()
    ApiResponseUtil<String> saveDept(DeptParam deptParam);


}
